<template>
  <div class="home">
    <search />
    <v-swipe />
    <Grid />
    <margin />
    <div class="content">
      <div>
        <p class="content-yhj">优惠卷</p>
      </div>
      <div class="content-line">
        <div class="content-line1">
          <h style="color: red;">
            <span style="font-size: 15px;">￥</span>
            5 元
          </h>
          <h1>全场通用 - 无限制</h1>
        </div>
        <div class="content-line2">
          <h2>限时满减券</h2>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
// 导入轮播图组件
import vSwipe from '../components/vSwipe.vue';
import search from '../components/search.vue';
import Grid from '../components/Grid.vue';
import margin from '../components/margin.vue';

export default {
  name: 'Home',
  components: {
    vSwipe,
    search,
    Grid,
    margin
  }
}
</script>
<style scoped>
.home {
  font-size: 24px;
}

.content-yhj {
  margin: 0;
  padding: 15px;
  font-size: 15px;
}

.content-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  width: 90%;
}

.content-line1 {
  box-sizing: border-box;
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 100%;
  top: 0;
  left: 5%;
  border: 1px solid red;
}

.content-line1 h1 {
  font-size: 12px;
  line-height: 16px;
  color: #969799;
}

.content-line2 h2 {
  font-size: 15px;
  font-weight: 500;
  margin-left: 35px;
}
</style>
